<!DOCTYPE html>
<html lang="en">
<head>
<title>Write-on! - <%= request.getParameter("title") %></title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>  
<script type="text/javascript" src="js/Copse_400.font.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="js/imagepreloader.js"></script>
<script type="text/javascript">
	preloadImages([
	'images/menu1_active.gif',
	'images/menu2_active.gif',
	'images/menu3_active.gif',
	'images/menu4_active.gif',
	'images/marker_right_active.jpg',
	'images/marker_left_active.jpg',
	'images/menu5_active.gif']);
</script>
<script type="text/javascript" src="js/tinydropdown.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.js"></script>
<!--[if lt IE 9]>
	<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
	<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
</head>
<body id="page1">
<div class="body1">	
	<div class="body2">
		<div class="main">
			<!-- header -->
			<header>
				<div class="wrapper">
					<h1><a href="/writeonproject/home" id="logo">Write-on!</a></h1>
					<div class="right">
						<nav>
							<!-- <ul id="top_nav">
								<li><a href="/writeonproject/home?page=advanced_search">Advanced Search</a></li>
							</ul>
							 <form id="search" method="post">
								<div>
									<input type="submit" class="submit" value="">
									<input type="text" class="input">
								</div>
							</form> -->
						</nav>
					</div>
				</div>
				<nav id="menu">
					<ul class="nav_menu" id="nav_menu">
						<li class="nav1"><a href="/writeonproject/home?page=create_story">Create</a>
                        	<ul>                            
                       	    	<li><a href="/writeonproject/home?page=create_story">Story</a></li>
                            	<li><a href="/writeonproject/home?page=create_prompt">Prompt</a></li>
                            </ul>
                        </li>
						<li class="nav2"><a href="/writeonproject/home?page=browse_stories">Browse</a>
                        	<ul>                            
                       	    	<li><a href="/writeonproject/home?page=browse_stories">Stories</a></li>
                            	<li><a href="/writeonproject/home?page=browse_prompts">Prompts</a></li>
                        	</ul>
                        </li>
		      		  	<li class="nav3"><a href="/writeonproject/home?page=top">Top Stories</a></li>
						<li class="nav4"><a href="/writeonproject/home?page=advanced_search">Search</a></li>
						<li class="nav5"><a href="/writeonproject/home?page=contact">Contact Us</a></li>
					</ul>
   			  	</nav>

   			  	<% String pageInclude = request.getAttribute("userid") != null ? "ubar_loggedin.jsp" : "ubar_guest.jsp";%>
				<jsp:include page='<%=pageInclude %>'/>
					
			</header>
		</div>
	</div>